package com.yjd.bi.jf.service;

import com.yjd.bi.jf.model.JfSignDataModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.enums.UserEnums;

/**
 * <b>description</b>：会员积分签到表业务接口<br>
 * <b>time</b>：2017-03-07 15:23:50 <br>
 * <b>author</b>：  ready percy-chen@hotmail.com
 */
public interface IJfSignDataService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public JfSignDataModel insert(JfSignDataModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(JfSignDataModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 签到
	 * @param user_id
	 * @param time
	 * @param channel
	 * @throws Exception
     */
	public int sign(Long user_id,Long time,UserEnums.Channel channel) throws Exception;
}
